Skip to content

update createAsyncTransform to allow for different node types#708

Merged
tmarmer merged 4 commits intomainfrom
async-transform-node-types
Aug 28, 2025
Merged

update createAsyncTransform to allow for different node types#708
tmarmer merged 4 commits intomainfrom
async-transform-node-types

Conversation

@tmarmer
Copy link
Copy Markdown
Contributor

@tmarmer tmarmer commented Aug 22, 2025

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major
  • N/A

Does your PR have any documentation updates?

  • Updated docs
  • No Update needed
  • Unable to update docs

Release Notes

  • Update the createAsyncTransform util to consider different incoming node types coming from getNestedAsset option. Originally, this assumed that it would always be an asset node type and would asset-wrap the node, but to allow for some additional flexibility, the following rules are applied:
    • Asset nodes and Applicability nodes with a value that is an asset node get asset wrapped like before.
    • multi-nodes have their values spread into the initialized multi-node to keep the structure flat
    • everything else gets added to the initialized multi-node as-is.

@tmarmer tmarmer requested a review from a team as a code owner August 22, 2025 19:10
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.87%. Comparing base (f748126) to head (181e4ff).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #708   +/-   ##
=======================================
  Coverage   86.86%   86.87%           
=======================================
  Files         502      503    +1     
  Lines       25643    25660   +17     
  Branches     2624     2630    +6     
=======================================
+ Hits        22275    22292   +17     
  Misses       3045     3045           
  Partials      323      323           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread plugins/async-node/core/src/__tests__/createAsyncTransform.test.ts Outdated
@KetanReddy
Copy link
Copy Markdown
Member

Looks good! Just one small think about mocking in tests.

@tmarmer tmarmer force-pushed the async-transform-node-types branch from 0ff494d to 181e4ff Compare August 28, 2025 17:22
@tmarmer tmarmer added the patch Increment the patch version when merged label Aug 28, 2025
@tmarmer tmarmer merged commit cd3746f into main Aug 28, 2025
12 checks passed
@tmarmer tmarmer deleted the async-transform-node-types branch August 28, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants